
// F. Chaxel 2010


#ifndef THREADOBJECT_H
#define THREADOBJECT_H

#include <pthread.h>
#include <unistd.h>

#include "Object.h"

class ThreadObject: public Object
{
	private:		
		static void *PlayThread( void *ptrObject );

	protected:
		pthread_t playThread;

	public:
		ThreadObject();
		virtual ~ThreadObject();

		void StartRunThreaded();
		void CancelThreadRun();

		virtual void Run()=0;
		
};

#endif
